//我是棋盘区域组件
import React from "react";
import Board from "../components/Board"

export default class BoardArea extends React.Component {
    handleColClick(row, col){
        this.props.onColClick(row, col);
    }
    render(){
        return(
            <div  className="BoardArea">
                <Board checkerboard={this.props.checkerboard} onColClick={this.handleColClick.bind(this)}/>
            </div>
        )
    }
}